﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp9
{
    class Student:Class2
    {
        public string Major { get; set; }
        public string Grade { get; set; }
        public Student(string ID, string Name, char Sex, string CardId, string Tel) : base(ID, Name, Sex, CardId, Tel)
        {
            Major = Major;
            Grade = Grade;
        }
        public void Show()
        {
            base.Show();
            Console.WriteLine("专业{0},年级{1},", Major, Grade);
        }
    }
}
